package com.mrogrape.notepad.ui.library;

import com.mrogrape.notepad.activity.MainFrame;
import com.mrogrape.notepad.common.ExitActionHandler;


public class LibraryExitActionHandler implements ExitActionHandler{

	private LibraryPane delegate;

	public LibraryExitActionHandler(LibraryPane delegate){

		this.delegate = delegate;
	}

	@Override
	public boolean onApplicationExit(MainFrame mf) {

		this.delegate.save();
		return true;
	}

}
